import actionTypes from '../actions/actionTypes'

let initstore = [];

export default (state = initstore, action) => {
  switch (action.type) {
    case actionTypes.INIT_DATA:
      const newState = action.data
      return newState;
    default:
      return state
  }
}